package com.example.demo.beannames;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class PetShow { 

    @Autowired
    Cat cat;

    @Autowired
    Dog dog;

    public PetShow (@Qualifier("getDog")Animal dog, @Qualifier("cat")Animal cat) {

    }
    public Animal getDog() { 
      return dog; 
    }
    public Animal getCat() { 
      return cat; 
    }
}